package ie.dcu.spca.data;

import ie.dcu.spca.model.bean.Item;

import java.util.List;

public interface ItemDataManager extends BasicDataManager {
    List<Item> getByBillId(int billId);

    Item get(int id);

    int create(int billId, int productId, double count);

    void update(int id, int billId, int productId, double count);

    void loadDefault(ProductDataManager p, UserDataManager u,
            PriceUnitDataManager pu, ItemUserDataManager iu);

    double priceFormat(double price);

    static final int NEW_ITEM_ID = -2;

}
